<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>showSections</title>
</head>
<body>	
	<s:iterator value="sections">
		<s:property value="NAME" />
		<s:url var="urlw" action="getAllWorksForSection" namespace="/adminOnly/action">
			<s:param name="id"><s:property value="ID"/></s:param>
		</s:url>
		<s:url var="urlaw" action="addWorkP" namespace="/adminOnly/action">
			<s:param name="section_id"><s:property value="ID"/></s:param>
		</s:url>
		<s:url var="urlaus" action="updateSectionP" namespace="/adminOnly/action">
			<s:param name="section_id"><s:property value="ID"/></s:param>
		</s:url>
		<s:url var="urlad" action="deleteSection" namespace="/adminOnly/action">
			<s:param name="section_id"><s:property value="ID"/></s:param>
		</s:url>
		<a href="${urlw}">get Works for: <s:property value="ID"/>section</a>||||
		<a href="${urlaw}">addWork</a>||||<a href="${urlaus}" style="color: green;">updateSection</a>||||
		<a href="${urlad}" style="color: red;">deleteSection</a><br/><br/>
	</s:iterator>
</body>
